


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet"
			type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
	</head>
	<body>

<html:form styleId="yfPlacefiledownlogForm" action="listYfPlacefiledownlog.do?method=getYfPlacefiledownlogPartialList">
	<input type="hidden" id="totalPage" value="${totalPage}" />
	<table cellspacing="0" cellpadding="0" width="98%" align="center"
				border="0" class="margtb5">
				<tr>
					<td align="left" class="padl5 lan12">
						<img src="<%=path%>/images/img-11.gif" width="12" height="12"></img>
						项目管理 &gt; 资料归档 &gt; 下载记录
					</td>
				</tr>
			</table>
			
			
			
			
<table id="yfPlacefiledownlogTab" style=" width:100%;" class="simple">
<thead>
<tr>
<th>下载人</th>
<th class="sortable">
<a href="listYfPlacefiledownlog.do?d-2230419-o=2&amp;id=1&amp;d-2230419-s=2&amp;initiateYear=0&amp;method=getYfPlacefiledownlogPartialList&amp;method=getYfPlacefiledownlogPartialList&amp;projectOrg=&amp;projectName=&amp;projectNo=">下载时间</a></th>
<th>资料名称</th>
<th>资料类型</th></tr></thead>
<tbody>
<logic:iterate name="yfPlacefiledownlogList" id="yfPlacefiledownlog">
<tr class="odd">

<td style="width:15%; text-align:center;">${yfPlacefiledownlog.downPerson}</td>
<td style="width:15%; text-align:center;"><bean:write name="yfPlacefiledownlog" property="downTime" format="yyyy-MM-dd hh:mm:ss"/></td>
<td style="width:15%; text-align:center;">${yfPlacefiledownlog.fileName}</td>
<td style="width:15%; text-align:center;">${yfPlacefiledownlog.fileType}</td>
</tr>

</logic:iterate>

			</table>
	<p><p><p>
	    <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
   <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="返回" name="but_return" onClick="javascript:history.go(-1);"/>
    </td>
  </tr>
</table>
		</html:form>
	</body>
</html>
<script>

function query(){
	document.forms[0].action="listYfPlacefiledownlog.do?method=getYfPlacefiledownlogPartialList";
	document.forms[0].submit();
}

//新增
function addYfPlacefiledownlog(){
    document.forms[0].action="toAddYfPlacefiledownlog.do?method=toAddYfPlacefiledownlog";
	document.forms[0].submit();
}

//修改
function modifyYfPlacefiledownlog(){
    var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	        alert("一次只能编辑一条记录！");
		return;
	}else{
		document.forms[0].action="toUpdateYfPlacefiledownlog.do?method=toUpdateYfPlacefiledownlog";
	        document.forms[0].submit();
	}
	
}

//删除
function delYfPlacefiledownlog()
{
	var ids = getSelectedIds('id');
	if( ids=="" )
	{
		alert("请选择一条记录！");
		return false;
	}
	if( confirm("是否要删除所选的信息？") )
	{
		document.forms[0].action="deleteYfPlacefiledownlog.do?method=deleteYfPlacefiledownlog&ids=" + ids;
		document.forms[0].submit();
	}
}
	
	
function validateSelect(){ 
    var count = 0;
    var jysBox = $s("id");
    for(var i=0;i<jysBox.length;i++){
		if(jysBox[i].checked){
        	count++;
		}
	}
    return count;
}

//查看
function view(){
	var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	    alert("一次只能查看一条记录！");
		return;
	}else{
		document.forms[0].action="viewYfPlacefiledownlog.do?method=viewYfPlacefiledownlog";
	    document.forms[0].submit();
	}
}


//全选   
function checkAll()   
{ 
  
   var chk=document.getElementsByName("id");   
   for(var i=0;i<chk.length;i++)   
   { 
     if($('checkall').checked){
     	chk(i).checked=true; 
     }else{
        chk(i).checked=false; 
     } 
       
 }
  
}   
</script>
